<section class="pg-subjects center-block">
  <ul class="tabset clearfix">
    <li ng-class="{active: isActive('unPublished')}" ng-click="onclickTab('unPublished')"><a>未发布专题</a></li>
    <li ng-class="{active: isActive('published')}" ng-click="onclickTab('published')"><a>已发布专题</a></li>
  </ul>
  <div class="subject-list clearfix">
    <div class="subject-item clearfix" ng-repeat="sub in subjects" ng-class="{last:isLast($index)}">
      <span class="time clearfix" ng-class="{first: $first,last: $last}" ng-if="showTime($index)"><span>{{sub.postime | date:'yyyy-MM-dd'}}</span></span>
      <div class="name">
        <a ng-href="http://{{CHANNELDOMAIN}}.163.com/special/aside1/" target="_blank">{{sub.modelname}}</a>
        <span class="oper-list clearfix">
          <a class="edit" title="编辑此专题" ng-href="#/{{TOPICID}}/wizard/step_3?subjectId={{sub.modelid}}"></a>
          <a class="delete" title="删除" ng-click="deleteSubject(sub.modelid, $index)"></a>
          <a class="new" title="以此专题为模板，新建专题" ng-href="#/{{TOPICID}}/wizard/step_2?newFromSubject={{sub.modelid}}"></a>
        </span>
      </div>
    </div>
  </div>
  <pagination total-items="totalItems" ng-change="pageChanged()" ng-model="currentPage" items-per-page="16" class="pagination-sm" rotate="false" num-pages="numPages"></pagination>
</section>
